<!DOCTYPE html>
<html>
<head>
<title>template</title>
<meta name="keywords" charset=utf-8/>
<!--[if !IE]> -->
  <script src="http://cdn.bootcss.com/jquery/2.2.0/jquery.min.js"></script>
  <!-- <![endif]-->
  <!--[if IE]>
      <script src="http://cdn.bootcss.com/jquery/1.12.0/jquery.js"></script>
  <![endif]-->
<style>
*{
  margin:0;
  padding:0;
}

</style>
</head>
<body>
  <div>hello js</div>

<script>
var obj = {"name":"zlp","age":"25","sex":"女"};
      for(var j in obj){
        document.write("属性名："+j+"-->值："+obj[j]+"<br>");
      }
var obj2 = ["a","b","c","d"];
      for(var j in obj2){
        document.write("索引"+j+"："+obj2[j]+"<br>");
      }
</script>
</body>
</html>